package com.learn.lombok.construct;

import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;

/**
 * @author XuYang
 * @since 2025/3/3 11:06
 */
@RequiredArgsConstructor(
    // 静态方法
    staticName = "of"
    // 构造器上注解
    , onConstructor_ = @Deprecated
    // 访问修饰符
    , access = AccessLevel.PUBLIC
)
public class RequiredArgsConstructorEntity {
    private final Long id;
    private final String name;
    private Integer intField;
}
